/*
 * VHView.java
 * Created on 28 mai 2009
 *
 * VirtualHockey Internet Platform
 * http://code.google.com/p/virtualhockey/
 *
 * Copyright (c) 2005-2009, Jens and Jan Janke (VirtualHockey Project)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */

package com.hockeo.vhweb.client.mvc;

import com.hockeo.vhweb.client.mvc.VHEvent.EventType;

/**
 * Base class for all VH views.
 *
 * @version $Id$
 * @author jjanke
 */
public abstract class VHView
{
  private VHController d_controller;

  /**
   * Sets the associated controller.
   */
  void setController( VHController controller )
  {
    d_controller = controller;
  }

  /**
   * Returns the associated controller.
   */
  public VHController getController()
  {
    return d_controller;
  }

  /**
   * This method is called when the {@link EventType#APP_INIT} event is received by the
   * parent controller. All the code that builds up the view should be placed in here.
   */
  public abstract void init();
}
